<template>
	<view class="">
		<!-- 自定义导航栏 -->
		<uni-nav-bar backgroundColor="#ffffff" color="#000000" left-icon="back" title="问题详情" statusBar="true">
		    <view slot="left">
		     <i class="iconfont icon-fanhui"></i>返回
		    </view>
		   </uni-nav-bar>
		<!-- 自定义导航栏 -->
		<!-- 数据展示 -->
		<view class="list">
			<view class="one">
				<text>{{shuju.address}}</text><text>{{shuju.statename}}</text>
			</view>
			<view class="two">
				<text>{{shuju.content}}</text>
			</view>
			<image v-for="item in price" :src="item.url" mode="widthFix"></image>
			<view class="three">
				{{shuju.addtime}}
			</view>
		</view>
		<!-- 数据展示 -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'',
				token:'',
				shuju:[],
				price:[],
			}
		},
		methods: {
			list(){
				uni.request({
					url:'http://estate.eshareedu.cn/estate/api/user/repairs/get',
					method:'GET',
					header:{
						Authorization:this.token
					},
					data:{
						id:this.id
					},
					success:(res=>{
						console.log(222,res.data);
						if(res.data.errCode == 10000){
							this.shuju = res.data.data
							this.price = res.data.data.images
							console.log(1111,this.price)
						}
					})
				})
			},
		},
		onLoad(option){
			this.id = option.id
			this.token = uni.getStorageSync('token')
			this.list();
		}
	}
</script>
<style lang="less">
 @import url(../../../static/css/Problem/DetailsOnTheProblem.less);
</style>
